package lesson02;

import java.io.*;

public class Demo_201 {

    public static void main(String[] args) throws IOException {
        File file = new File("D:/temp/test.txt");
        FileInputStream fileInputStream = new FileInputStream(file);
        while (true){
            int read = fileInputStream.read();
            if (read==-1){
                break;
            }else {
                System.out.println(read);
            }
        }

        fileInputStream.close();

    }
}
